package com.jabex.persistence.model;

import org.joda.time.LocalDate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by jaugusto on 4/09/14.
 */
@Entity
@Table(name = "ADA_CITIES")
public class Contract extends Identity {
	@Column(name = "NAME", length = 100, unique = false, nullable = false)
	private String name;
	@Column(name = "DESCRIPTION", length = 255, unique = false, nullable = true)
	private String description;
	@Column(name = "CODE", length = 12, unique = false, nullable = false)
	private String code;
	@Column(name = "COMPANY", length = 50, unique = false, nullable = false)
	private String company;
	@Column(name = "CREATE_DATE", unique = false, nullable = false)
	private Date createDate;
	@Column(name = "DEAD_LINE", unique = false, nullable = true)
	private LocalDate deadLine;
	@Column(name = "PRIORITY", unique = false, nullable = true)
	private int priority;
	@Column(name = "PRODUCT_TYPE", length = 50, unique = false, nullable = true)
	private String productType;
	@Column(name = "CONTRACT_INFO", length = 255, unique = false, nullable = true)
	private String contractInfo;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public LocalDate getDeadLine() {
		return deadLine;
	}

	public void setDeadLine(LocalDate deadLine) {
		this.deadLine = deadLine;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public String getProductType() {
		return productType;
	}

	public void setProductType(String productType) {
		this.productType = productType;
	}

	public String getContractInfo() {
		return contractInfo;
	}

	public void setContractInfo(String contractInfo) {
		this.contractInfo = contractInfo;
	}
}
